package com.dm.shop.mapper;

import com.dm.shop.entity.Product;
import com.dm.shop.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MyBatisPlusGenerater-Saiya Wang
 * @since 2021-07-20
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where nick_name like concat('%',#{nickname},'%')")
    List<User> getUserByNickName(String nickname);

}
